package com.putiman;

import com.putiman.server.RPCServer;
import com.putiman.service.UserService;
import com.putiman.service.UserServiceImpl;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        //创建一个rpc服务端
        RPCServer rpcServer = new RPCServer();
        //发布暴露服务
        rpcServer.publishServiceAPI(UserService.class, new UserServiceImpl());
        //启动服务
        rpcServer.start(12345);
    }
}
